import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//图片懒加载
import VueLazyLoad from 'vue-lazyload'
// 设置默认选项
const options = {
  loading: require('../public/static/loading.png'), // 加载时显示的图片路径
}
import {
  Tabbar,
  TabbarItem,
  Search,
  Tab,
  Tabs,
  Swipe,
  SwipeItem,
  Grid,
  GridItem,
  NavBar,
  Sidebar,
  SidebarItem,
  Tag,
  GoodsAction,
  GoodsActionIcon,
  GoodsActionButton,
  Icon,
  List,
  Cell,
  Form,
  Field,
  Button,
  Popup,
  Empty
} from 'vant';
import 'lib-flexible/flexible'
Vue
  .use(Tabbar)
  .use(TabbarItem)
  .use(Search)
  .use(Tab)
  .use(Tabs)
  .use(Swipe)
  .use(SwipeItem)
  .use(Grid)
  .use(GridItem)
  .use(NavBar)
  .use(Sidebar)
  .use(SidebarItem)
  .use(Tag)
  .use(GoodsAction)
  .use(GoodsActionButton)
  .use(GoodsActionIcon)
  .use(Icon)
  .use(List)
  .use(Cell)
  .use(Field)
  .use(Form)
  .use(Button)
  .use(Popup)
  .use(Empty)
  .use(VueLazyLoad, options);
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
